#include "euqt.h"
//returning a pointer to the object w/o changing the signature
//needed for radio buttons and elsewhere to avoid double bookkeeping

char * Schar = new char [4096];

void SimpleReceiver::slot()
{
	EuCallProc p = (EuCallProc) rid;
	p();
}

void SimpleReceiver::slotWidget()
{
	((EuCallProcP) rid)(widget);
}

void SimpleReceiver::slot(bool b1)
{
	((EuCallProcB) rid)(widget, b1);
}

void SimpleReceiver::slot(const QDate &date)
{
	((EuCallProcIII) rid)(widget, date.year(), date.month(), date.day());
}

void SimpleReceiver::slot(int i)
{
	((EuCallProcI) rid)(widget, i);
}

void SimpleReceiver::slot(const QString &s)
{
    
	strlcpy(Schar, static_cast<const char*>(s.toUtf8().data()), 2000);//shareddata
	((EuCallProcS) rid)(widget, Schar);
}

